package com.nf.action;

import com.nf.entity.Car;
import com.nf.entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class testAction {

    private Student s;

    @RequestMapping("/awa")
    public String a(String usrename){
        System.out.println("输入的是："+usrename);
        return "hi";
    }
    @ResponseBody
    @RequestMapping("/aa")
    public Student b(String name,Integer age) {
        Student s = new Student();
        s.setName(name);
        s.setAge(age);
         return s;
    }
}
